<!--
 * @Author:
 * @Date: 2021-12-18 19:54:33
 * @LastEditTime: 2021-12-18 21:52:08
 * @FilePath: /vue3-vite2-ts-antdv/src/views/Home/index.vue
-->

<template>
  <img
    alt="Vue logo"
    src="@/assets/logo.png"
  />
  <div class="box">
    <div class="h1">h1</div>
    <div class="h2">h2</div>
  </div>
  <a-button type="primary">
    <template #icon>
      <!-- <SearchOutlined /> -->
    </template>
    Primary Button
  </a-button>
  <Child />
</template>

<script lang="ts">
import { defineComponent } from 'vue'
// import Child from './components/Child.tsx'

export default defineComponent({
  name: 'Home',
  components: {
    // Child
  }
})
</script>

<style lang="less" scoped>
.box {
  width: 100%;
  height: 100px;
  border: 1px solid #42b983;

  .h1 {
    color: red;
  }

  .h2 {
    color: blue;
  }
}
</style>
